import 'dart:convert';
/// id : "3a3069f4-baf1-49ee-96fa-05642b4dd9fd"
/// year : "2023"
/// month : "04"
/// day : "01"
/// dateStr : "2023-04-01"
/// docSum : 0
/// illDocSum : 0
/// illHighDocSum : 0
/// reportType : "全部"
/// problemType : "全部"
/// isValid : "1"
/// tenantId : "gs"
/// createBy : "-1"
/// createTime : 1680251790000
/// updateBy : ""
/// updateTime : 1680251790000

TrendPoint trendPointFromJson(String str) => TrendPoint.fromJson(json.decode(str));
String trendPointToJson(TrendPoint data) => json.encode(data.toJson());
class TrendPoint {
  TrendPoint({
      this.id, 
      this.year, 
      this.month, 
      this.day, 
      this.dateStr, 
      this.docSum, 
      this.illDocSum, 
      this.illHighDocSum, 
      this.reportType, 
      this.problemType, 
      this.isValid, 
      this.tenantId, 
      this.createBy, 
      this.createTime, 
      this.updateBy, 
      this.updateTime,});

  TrendPoint.fromJson(dynamic json) {
    id = json['id'];
    year = json['year'];
    month = json['month'];
    day = json['day'];
    dateStr = json['dateStr'];
    docSum = json['docSum'];
    illDocSum = json['illDocSum'];
    illHighDocSum = json['illHighDocSum'];
    reportType = json['reportType'];
    problemType = json['problemType'];
    isValid = json['isValid'];
    tenantId = json['tenantId'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }
  String? id;
  String? year;
  String? month;
  String? day;
  String? dateStr;
  num? docSum;
  num? illDocSum;
  num? illHighDocSum;
  String? reportType;
  String? problemType;
  String? isValid;
  String? tenantId;
  String? createBy;
  num? createTime;
  String? updateBy;
  num? updateTime;
TrendPoint copyWith({  String? id,
  String? year,
  String? month,
  String? day,
  String? dateStr,
  num? docSum,
  num? illDocSum,
  num? illHighDocSum,
  String? reportType,
  String? problemType,
  String? isValid,
  String? tenantId,
  String? createBy,
  num? createTime,
  String? updateBy,
  num? updateTime,
}) => TrendPoint(  id: id ?? this.id,
  year: year ?? this.year,
  month: month ?? this.month,
  day: day ?? this.day,
  dateStr: dateStr ?? this.dateStr,
  docSum: docSum ?? this.docSum,
  illDocSum: illDocSum ?? this.illDocSum,
  illHighDocSum: illHighDocSum ?? this.illHighDocSum,
  reportType: reportType ?? this.reportType,
  problemType: problemType ?? this.problemType,
  isValid: isValid ?? this.isValid,
  tenantId: tenantId ?? this.tenantId,
  createBy: createBy ?? this.createBy,
  createTime: createTime ?? this.createTime,
  updateBy: updateBy ?? this.updateBy,
  updateTime: updateTime ?? this.updateTime,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['year'] = year;
    map['month'] = month;
    map['day'] = day;
    map['dateStr'] = dateStr;
    map['docSum'] = docSum;
    map['illDocSum'] = illDocSum;
    map['illHighDocSum'] = illHighDocSum;
    map['reportType'] = reportType;
    map['problemType'] = problemType;
    map['isValid'] = isValid;
    map['tenantId'] = tenantId;
    map['createBy'] = createBy;
    map['createTime'] = createTime;
    map['updateBy'] = updateBy;
    map['updateTime'] = updateTime;
    return map;
  }

}